import request from '@/utils/request'

// 查询积分订单列表
export function listIntegralOrder(data) {
  return request({
    url: '/ruoyi-recycle/integralOrder/integralOrderPageQuery',
    method: 'post',
    data: data
  })
}

// 查询积分订单详细
export function getIntegralOrder(id) {
  return request({
    url: '/ruoyi-recycle/integralOrder/' + id,
    method: 'get'
  })
}

// 新增积分订单
export function addIntegralOrder(data) {
  return request({
    url: '/recycle/integralOrder',
    method: 'post',
    data: data
  })
}

// 修改积分订单
export function updateIntegralOrder(data) {
  return request({
    url: '/recycle/integralOrder',
    method: 'put',
    data: data
  })
}

// 删除积分订单
export function delIntegralOrder(id) {
  return request({
    url: '/recycle/integralOrder/' + id,
    method: 'delete'
  })
}
